package com.mingqijia.gassafety.webserver.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

import java.util.Date;

/**
 * <p>
 *
 * @author mby
 * @since 2024-01-12
 */

@Data
@ApiModel("客户服务信息列表")
public class ConsumerServiceInfoResponse {

    private Integer id;
    private Integer consumerId;
    private String spId;

    @ApiModelProperty(value = "服务状态")
    private Integer serviceStatus;

    @ApiModelProperty(value = "服务状态")
    private String serviceStatusName;

    @ApiModelProperty(value = "设备号")
    private String imei;

    @ApiModelProperty(value = "安装日期")
    private String installDate;

    @ApiModelProperty(value = "服务信息")
    private String serviceInfo;
    @ApiModelProperty(value = "服务开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date startDate;

    @ApiModelProperty("服务结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date endDate;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty(value = "服务套餐id")
    private Integer pkgId;

    @ApiModelProperty(value = "服务套餐名称")
    private String pkgName;

    @ApiModelProperty(value = "数据来源")
    private Integer dataSource;

    @ApiModelProperty(value = "数据来源名称")
    private String dataSourceName;

    @ApiModelProperty(value = "服务周期")
    private Integer pgkCycle;

    @ApiModelProperty(value = "套餐周期单位")
    private String pgkCycleUnit;

}
